package com.sunducation.co.pw;

/**
 * @description: TODO
 * @author:chenwenbiao
 * @createTime:2019/7/6 15:43
 * @Version：1.0
 **/
public class Test {

    public static void main(String[] argv){
        Integer.parseInt("1");
        Integer.valueOf("1");

//        float x = 0.000000009999f;
//        float y = 0.000000009999f;

        float x = 0.06f;
        float y = 0.0600000001f;
        float d = x - y;

        if(d > 0){
            System.out.println(">");
        }
        else if(d < 0){
            System.out.println("<");
        }
        else{
            System.out.println("=");
        }


        System.out.println(Float.floatToIntBits(0.06f));
        System.out.println(Float.floatToIntBits(0.0600000001f));

        System.out.println(Integer.toBinaryString(Float.floatToIntBits(0.06f)));
        System.out.println(Integer.toBinaryString(Float.floatToIntBits(0.0600000001f)));



        double d1 = 0.1, d2 = 0.1;
        if (d1 == d2) {
            System.out.println("=====");
        }// 坏代码
    }

}
